package org.edu.modules.enroll.feign;


import com.alibaba.fastjson.JSONObject;
import org.edu.common.api.vo.Result;
import org.edu.common.system.api.factory.SysBaseAPIFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@Component
@FeignClient(value = "edu-common", fallbackFactory = SysBaseAPIFallbackFactory.class)
public interface FeignCommon {

    //根据userid获取教师信息
    @GetMapping("/common/veCommon/queryTeacherByUserId")
    Result<JSONObject> queryTeacherByUserId(@RequestParam("id") String id,
                                            @RequestParam("userId") String userId);
    @GetMapping({"/common/veCommon/queryXueZhiList"})
    public abstract Result<JSONObject> queryXueZhiList(@RequestParam(name = "interfaceUserId", required = true) String paramString);


}
